package com.heima.apis.admin;


import com.heima.model.admin.dtos.AdChannelDto;


import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "频道管理", tags = "channel", description = "频道管理API")
public interface AdChannelControllerApi {
    /**
     * 根据名称分页查询频道列表
     * @param dto
     * @return
     */
    @ApiOperation("频道分页列表查询")
    public ResponseResult findByNameAndPage(AdChannelDto dto);


    public ResponseResult insert(AdChannel channel);


    public ResponseResult update(AdChannel adchannel);

    public ResponseResult deleteById(Integer id);



    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();
}
